package com.briup.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 实体类
 * @Author briup-teacher
 * @Date 2023-11
 **/
@Accessors(chain = true) //链式调用 将set方法返回值 void -->User对象
@Builder //新增代码在User类 通过建造者模式生成对象
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("`user`")  //实体和数据库表映射
public class User {
    private Long id;
    private String name;
    private Integer age;
    private String email;
}
